package CN.COM.DE;

public class Y8 {

	public static void main(String[] args) {
		int x;
		int a=0,b=0,c=0;
		for (x=100;x<=999;x++) {
			a=x/100;
			b=x%100/10;
			c=x%100%10;
			if(a*a*a+b*b*b+c*c*c==x) {
				System.out.println(x);
			}
		}
	}

}
